<div class="people view">
<h2><?php  __('Person');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Person Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['person_id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id Card Type'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['IdCardType']['meaning']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id Card Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['id_card_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Surname'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['surname']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('First Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['first_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Middle Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['middle_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Birth Date'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['birth_date']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Telephone Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['telephone_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Cell Phone Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['cell_phone_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Fax Number'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['fax_number']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Email'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['email']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Address'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($person['Address']['address_id'], array('controller' => 'addresses', 'action' => 'view', $person['Address']['address_id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['created_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['updated_by']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $person['Person']['updated']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Person', true), array('action' => 'edit', $person['Person']['person_id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List People', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Person', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Addresses', true), array('controller' => 'addresses', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Buildings', true), array('controller' => 'buildings', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('List Properties', true), array('controller' => 'properties', 'action' => 'index')); ?> </li>
	</ul>
</div>
	<div class="related">
		<h3><?php __('Related Users');?></h3>
	<?php if (!empty($person['User'])):?>
		<dl>	<?php $i = 0; $class = ' class="altrow"';?>
			<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Username');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['username'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Password');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['password'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Group Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['group_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Person Id');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['person_id'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('End Date');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['end_date'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['created_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['created'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated By');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['updated_by'];?>
&nbsp;</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Updated');?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
	<?php echo $person['User']['updated'];?>
&nbsp;</dd>
		</dl>
	<?php endif; ?>
		<div class="actions">
			<ul>
				<li><?php echo $this->Html->link(__('Edit User', true), array('controller' => 'users', 'action' => 'edit', $person['User']['id'])); ?></li>
			</ul>
		</div>
	</div>
	<div class="related">
	<h3><?php __('Related Buildings');?></h3>
	<?php if (!empty($person['DoormanBuilding'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Building Name'); ?></th>
		<th><?php __('Apt Business'); ?></th>
		<th><?php __('Regular Fund'); ?></th>
		<th><?php __('Special Fund'); ?></th>
		<th><?php __('Expense Liquidation Type'); ?></th>
		<th><?php __('Doorman Id'); ?></th>
		<th><?php __('Address Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['DoormanBuilding'] as $doormanBuilding):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $doormanBuilding['building_id'];?></td>
			<td><?php echo $doormanBuilding['building_name'];?></td>
			<td><?php echo $doormanBuilding['apt_business'];?></td>
			<td><?php echo $doormanBuilding['regular_fund'];?></td>
			<td><?php echo $doormanBuilding['special_fund'];?></td>
			<td><?php echo $doormanBuilding['expense_liquidation_type'];?></td>
			<td><?php echo $doormanBuilding['doorman_id'];?></td>
			<td><?php echo $doormanBuilding['address_id'];?></td>
			<td><?php echo $doormanBuilding['end_date'];?></td>
			<td><?php echo $doormanBuilding['created_by'];?></td>
			<td><?php echo $doormanBuilding['created'];?></td>
			<td><?php echo $doormanBuilding['updated_by'];?></td>
			<td><?php echo $doormanBuilding['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'buildings', 'action' => 'view', $doormanBuilding['building_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'buildings', 'action' => 'edit', $doormanBuilding['building_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'buildings', 'action' => 'delete', $doormanBuilding['building_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $doormanBuilding['building_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Building', true), array('controller' => 'buildings', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Properties');?></h3>
	<?php if (!empty($person['PropertyOwner'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Floor'); ?></th>
		<th><?php __('Flat'); ?></th>
		<th><?php __('Dividend'); ?></th>
		<th><?php __('Owner Id'); ?></th>
		<th><?php __('Owner Representative Id'); ?></th>
		<th><?php __('Tenant Id'); ?></th>
		<th><?php __('Tenant Representative Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['PropertyOwner'] as $propertyOwner):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $propertyOwner['property_id'];?></td>
			<td><?php echo $propertyOwner['building_id'];?></td>
			<td><?php echo $propertyOwner['property_type_id'];?></td>
			<td><?php echo $propertyOwner['floor'];?></td>
			<td><?php echo $propertyOwner['flat'];?></td>
			<td><?php echo $propertyOwner['dividend'];?></td>
			<td><?php echo $propertyOwner['owner_id'];?></td>
			<td><?php echo $propertyOwner['owner_representative_id'];?></td>
			<td><?php echo $propertyOwner['tenant_id'];?></td>
			<td><?php echo $propertyOwner['tenant_representative_id'];?></td>
			<td><?php echo $propertyOwner['end_date'];?></td>
			<td><?php echo $propertyOwner['created_by'];?></td>
			<td><?php echo $propertyOwner['created'];?></td>
			<td><?php echo $propertyOwner['updated_by'];?></td>
			<td><?php echo $propertyOwner['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'properties', 'action' => 'view', $propertyOwner['property_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'properties', 'action' => 'edit', $propertyOwner['property_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'properties', 'action' => 'delete', $propertyOwner['property_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $propertyOwner['property_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property Owner', true), array('controller' => 'properties', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Properties');?></h3>
	<?php if (!empty($person['PropertyOwnerRepresentative'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Floor'); ?></th>
		<th><?php __('Flat'); ?></th>
		<th><?php __('Dividend'); ?></th>
		<th><?php __('Owner Id'); ?></th>
		<th><?php __('Owner Representative Id'); ?></th>
		<th><?php __('Tenant Id'); ?></th>
		<th><?php __('Tenant Representative Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['PropertyOwnerRepresentative'] as $propertyOwnerRepresentative):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $propertyOwnerRepresentative['property_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['building_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['property_type_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['floor'];?></td>
			<td><?php echo $propertyOwnerRepresentative['flat'];?></td>
			<td><?php echo $propertyOwnerRepresentative['dividend'];?></td>
			<td><?php echo $propertyOwnerRepresentative['owner_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['owner_representative_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['tenant_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['tenant_representative_id'];?></td>
			<td><?php echo $propertyOwnerRepresentative['end_date'];?></td>
			<td><?php echo $propertyOwnerRepresentative['created_by'];?></td>
			<td><?php echo $propertyOwnerRepresentative['created'];?></td>
			<td><?php echo $propertyOwnerRepresentative['updated_by'];?></td>
			<td><?php echo $propertyOwnerRepresentative['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'properties', 'action' => 'view', $propertyOwnerRepresentative['property_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'properties', 'action' => 'edit', $propertyOwnerRepresentative['property_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'properties', 'action' => 'delete', $propertyOwnerRepresentative['property_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $propertyOwnerRepresentative['property_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property Owner Representative', true), array('controller' => 'properties', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Properties');?></h3>
	<?php if (!empty($person['PropertyTenant'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Floor'); ?></th>
		<th><?php __('Flat'); ?></th>
		<th><?php __('Dividend'); ?></th>
		<th><?php __('Owner Id'); ?></th>
		<th><?php __('Owner Representative Id'); ?></th>
		<th><?php __('Tenant Id'); ?></th>
		<th><?php __('Tenant Representative Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['PropertyTenant'] as $propertyTenant):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $propertyTenant['property_id'];?></td>
			<td><?php echo $propertyTenant['building_id'];?></td>
			<td><?php echo $propertyTenant['property_type_id'];?></td>
			<td><?php echo $propertyTenant['floor'];?></td>
			<td><?php echo $propertyTenant['flat'];?></td>
			<td><?php echo $propertyTenant['dividend'];?></td>
			<td><?php echo $propertyTenant['owner_id'];?></td>
			<td><?php echo $propertyTenant['owner_representative_id'];?></td>
			<td><?php echo $propertyTenant['tenant_id'];?></td>
			<td><?php echo $propertyTenant['tenant_representative_id'];?></td>
			<td><?php echo $propertyTenant['end_date'];?></td>
			<td><?php echo $propertyTenant['created_by'];?></td>
			<td><?php echo $propertyTenant['created'];?></td>
			<td><?php echo $propertyTenant['updated_by'];?></td>
			<td><?php echo $propertyTenant['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'properties', 'action' => 'view', $propertyTenant['property_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'properties', 'action' => 'edit', $propertyTenant['property_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'properties', 'action' => 'delete', $propertyTenant['property_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $propertyTenant['property_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property Tenant', true), array('controller' => 'properties', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Properties');?></h3>
	<?php if (!empty($person['PropertyTenantRepresentative'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Property Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Property Type Id'); ?></th>
		<th><?php __('Floor'); ?></th>
		<th><?php __('Flat'); ?></th>
		<th><?php __('Dividend'); ?></th>
		<th><?php __('Owner Id'); ?></th>
		<th><?php __('Owner Representative Id'); ?></th>
		<th><?php __('Tenant Id'); ?></th>
		<th><?php __('Tenant Representative Id'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['PropertyTenantRepresentative'] as $propertyTenantRepresentative):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $propertyTenantRepresentative['property_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['building_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['property_type_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['floor'];?></td>
			<td><?php echo $propertyTenantRepresentative['flat'];?></td>
			<td><?php echo $propertyTenantRepresentative['dividend'];?></td>
			<td><?php echo $propertyTenantRepresentative['owner_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['owner_representative_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['tenant_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['tenant_representative_id'];?></td>
			<td><?php echo $propertyTenantRepresentative['end_date'];?></td>
			<td><?php echo $propertyTenantRepresentative['created_by'];?></td>
			<td><?php echo $propertyTenantRepresentative['created'];?></td>
			<td><?php echo $propertyTenantRepresentative['updated_by'];?></td>
			<td><?php echo $propertyTenantRepresentative['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'properties', 'action' => 'view', $propertyTenantRepresentative['property_id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'properties', 'action' => 'edit', $propertyTenantRepresentative['property_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'properties', 'action' => 'delete', $propertyTenantRepresentative['property_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $propertyTenantRepresentative['property_id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Property Tenant Representative', true), array('controller' => 'properties', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Council Members');?></h3>
	<?php if (!empty($person['CouncilMember'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Council Member Id'); ?></th>
		<th><?php __('Building Id'); ?></th>
		<th><?php __('Person Id'); ?></th>
		<th><?php __('President Flag'); ?></th>
		<th><?php __('End Date'); ?></th>
		<th><?php __('Created By'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Updated By'); ?></th>
		<th><?php __('Updated'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($person['CouncilMember'] as $councilMember):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $councilMember['council_member_id'];?></td>
			<td><?php echo $councilMember['building_id'];?></td>
			<td><?php echo $councilMember['person_id'];?></td>
			<td><?php echo $councilMember['president_flag'];?></td>
			<td><?php echo $councilMember['end_date'];?></td>
			<td><?php echo $councilMember['created_by'];?></td>
			<td><?php echo $councilMember['created'];?></td>
			<td><?php echo $councilMember['updated_by'];?></td>
			<td><?php echo $councilMember['updated'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'council_members', 'action' => 'view', $councilMember['council_member_id'])); ?>
                            <?php if (!$councilMember['end_date']) { ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'council_members', 'action' => 'edit', $councilMember['council_member_id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'council_members', 'action' => 'delete', $councilMember['council_member_id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $councilMember['council_member_id'])); ?>
                            <?php } ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Council Member', true), array('controller' => 'council_members', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>